package com.springbootcrud.user.service;

import com.springbootcrud.user.entity.User;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * Created by Sun on 2020/4/9.
 */
public interface UserService {
    //查询所有的
    List<User> getAll(Map map);
    //删除操作
    void delById(Integer id);
    //新增
    void save(User user);
    //根据id查询用户
     User getUserById(Integer id);
     //修改
     void updateUserById(@RequestBody User user);
}
